package com.yjc.drygoods.member.feign;

import com.yjc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @author yjc
 * @create 2022-10-12 23:27
 */
@FeignClient("drygoods-product")
public interface ProductFeignService {
    @PostMapping("/product/skuinfo/getBatch/skuInfo")
    R getBatchSkuInfo(@RequestBody List<Long> skuIds);

    @PostMapping("/product/spucomment/getBatch/skuComments")
    R getBatchSkuComments(@RequestBody List<Long> skuIds);

    @RequestMapping("/product/skuinfo/update/attentionCount")
    R updateAttentionCount(@RequestParam Map<String, Object> params);

    @GetMapping("/product/skuinfo/get/user/like/skuInfo")
    public R getUserLikeSkuInfo(@RequestParam("username") String username);
}
